focusedElement

Returns an Optional that contains the currently focused element in the document, otherwise an empty Optional if there is no focused element in this document.

Since

7.10

Throws

when the document is closed